package com.ele.Pojo;

/**
 * 店铺分类的类
 */
public class ShopCategory {
    //店铺的所属商家
    private Integer shopCategoryId;
    //类型
    private String categoryName;

    public Integer getShopCategoryId() {
        return shopCategoryId;
    }

    public void setShopCategoryId(Integer shopCategoryId) {
        this.shopCategoryId = shopCategoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ShopCategory that = (ShopCategory) o;

        if (shopCategoryId != null ? !shopCategoryId.equals(that.shopCategoryId) : that.shopCategoryId != null)
            return false;
        return categoryName != null ? categoryName.equals(that.categoryName) : that.categoryName == null;
    }

    @Override
    public int hashCode() {
        int result = shopCategoryId != null ? shopCategoryId.hashCode() : 0;
        result = 31 * result + (categoryName != null ? categoryName.hashCode() : 0);
        return result;
    }
}
